package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DepartmentMapper extends Mapper<Department> {
    // 基本的CRUD通过继承获得....

    //高级查询
    List<Department> getAllDepa(DepartmentQuery query);

    //查询所有的父级部门
    List<Department> getAllParentDepa();

    //是否是父级部门
    List<Department> whetherItIsAParentDepartment(Long id);
}
